<template>
  <div>
    <div class="page-header col-xs-offset-2 col-xs-8">
      <h2>Vue路由测试</h2>
    </div>
    <!-- 导航区域 -->
    <div class="col-xs-2 col-xs-offset-2">
      <!-- 在Vue中我们要使用RouterLink，实现路径的切换，进而引起展示不同的组件 -->
      <RouterLink class="list-group-item" to="/about" active-class="active">About</RouterLink>
      <RouterLink class="list-group-item" :to="{path:'/home'}" active-class="active">Home234</RouterLink>
    </div>
    <!-- 展示区 -->
    <div class="col-xs-6 panel panel-body panel-primary">
      <router-view></router-view>
    </div>
  </div>
</template>

<script>
  export default {
    name: "App",
  };
</script>

